<?php

use yii\db\Migration;

/**
 * Class m180130_085341_alter_columns_to_project_investigation_stakeholder
 */
class m180130_085341_alter_columns_to_project_investigation_stakeholder extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        //工商信息
//        $this->alterColumn('project_investigation_stakeholder','stakeholder_title',$this->text()->comment('干系人名称'));
//        $this->alterColumn('project_investigation_stakeholder','registered_capital',$this->text()->comment('注册资本'));
//        $this->alterColumn('project_investigation_stakeholder','registered_address',$this->text()->comment('注册地址'));
//        $this->alterColumn('project_investigation_stakeholder','legal_representative',$this->text()->comment('法定代表人'));

        //列失信
        $this->alterColumn('project_investigation_stakeholder','block_list',$this->text()->comment('失信名单'));

        //承债详情
        $this->alterColumn('project_investigation_stakeholder','evaluate_price',$this->text()->comment('评估价'));
        $this->alterColumn('project_investigation_stakeholder','auction_price',$this->text()->comment('拍卖价'));
        $this->alterColumn('project_investigation_stakeholder','market_price',$this->text()->comment('市场询价'));

        //承债详情
        $this->alterColumn('project_investigation_stakeholder','payment_reservation',$this->text()->comment('回现保守'));
        $this->alterColumn('project_investigation_stakeholder','payment_radical',$this->text()->comment('回现激进'));
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180130_085341_alter_columns_to_project_investigation_stakeholder cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180130_085341_alter_columns_to_project_investigation_stakeholder cannot be reverted.\n";

        return false;
    }
    */
}
